package com.mtons.mblog.modules.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

/**
 * 喜欢/收藏
 * @author langhsu on 2015/8/31.
 */
@TableName("mto_favorite")
public class Favorite {
    @TableId(type = IdType.AUTO)
    private long id;

    /**
     * 所属用户
     */
    private long userId;

    /**
     * 内容ID
     */
    private long postId;

    @TableField(value = "created", fill = FieldFill.INSERT)
    private Date created;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getPostId() {
        return postId;
    }

    public void setPostId(long postId) {
        this.postId = postId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }
}
